package org.helgoboss.text_editor_commandlet

import org.helgoboss.osgi_additions._
import org.helgoboss.text_editor.TextEditor
import org.helgoboss.commandlet.Commandlet
import org.helgoboss.launchlet.Launchlet


class TextEditorCommandletActivator extends OsgiContext with OsgiServiceWatcher with OsgiProvider {
    whenBundleActive {
        whenServicePresent[TextEditor] {
            new TextEditorCommandlet(_).providesService[Commandlet, Launchlet]
        }
    }
}   